package com.smartstate.ems.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 水表
 */
@Data
public class WaterMeter implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableField(value = "id", fill = FieldFill.INSERT)
    private String id;

    @ApiModelProperty(value = "时间戳")
    private String ts;

    @ApiModelProperty(value = "设备编码")
    private String deviceId;

    @ApiModelProperty(value = "设备表主键id")
    private String equipment_id;

    @ApiModelProperty(value = "对象id")
    private String objId;

    @ApiModelProperty(value = "瞬间计量")
    public float instantaneous;

    @ApiModelProperty(value = "前一时间瞬间计量")
    public float det_instantaneous;

    @ApiModelProperty(value = "总计")
    public float total;

    @ApiModelProperty(value = "前一时间段差值")
    public float det_total;


}
